package com.test.ssh.dao;

import com.test.ssh.entities.Department;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-10-08 下午4:05
 */
public class DepartmentDao extends BaseDao {

    public List<Department> getAll() {
        String hql = "FROM Department";
        return getSession().createQuery(hql).list();
    }
}
